package cate.common.table.activity.battleroyale.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cp.solution.util.str.Str;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

public class BattleRoyaleBlessRow extends ERow {

    public int blessId;

    private String gainStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("祝福ID",0);
        this.blessId = xrw.getInteger("祝福ID",0);
        this.gainStr = xrw.getString("增益ID");
    }

    public List<Integer> gainIds;

    @Override
    public void decode() {
        if(StringUtils.isNotBlank(gainStr)){
            gainIds = Str.strArr2intList(gainStr.split("#"));
        }
    }
}
